from django.db import models
from django.contrib import admin
from datetime import date
STATUS_CHOICES = (
    ('ENABLED', 'ENABLED'),
    ('DISABLED', 'DISABLED'),
)
# Create your models here.
class Category(models.Model):
	category=models.CharField(max_length=255,unique=True)
	#parentcategory=models.ForeignKey('self', blank=True, null=True, related_name='child_set')
	status=models.CharField(max_length=8,choices=STATUS_CHOICES)
	date_created=models.DateField(auto_now_add=True)
	date_modified=models.DateField(auto_now=True)
	def __str__(self):
		return self.category
    